<template>
  <div class="teamGroup">
    <!-- logo -->
    <div style="height:100px;background:#fff">
      <title1 class="topLogo"></title1>
    </div>

    <!--头部面包屑-->
    <div class="breadCrumbBox flexCenter">
      <div style="width: 1300px;height: 100%;" class="flexAlignCenter">
        <a-breadcrumb separator=">>">
          <a-breadcrumb-item :to="$route.matched[0]"
            >
            <router-link :to="projectDetail">
                京沪高速公路新沂至淮安段改扩建工程
              </router-link>
            </a-breadcrumb-item
          >
          <a-breadcrumb-item
            >
            <router-link :to="construction">
                江苏省交通工程集团有限公司
              </router-link>
          </a-breadcrumb-item>
          <a-breadcrumb-item
            >
            <router-link :to="laborUnit">
                南京仁泰基础工程有限公司
              </router-link>
    
          </a-breadcrumb-item>
          <a-breadcrumb-item
            >路基施工一队
          </a-breadcrumb-item>
        </a-breadcrumb>
      </div>
    </div>
    <!-- 顶部内容 -->
    <div class="top flexBetween">
      <div class="logo">
        <div class="logo_text">班组</div>
        <!-- <div style="text-align:center">SG-1标</div> -->
      </div>
      <div class="right">
        <div class="title">路基一组</div>

        <div class="info flexStart2">
          <div>
            <span>班组长：</span>
            <span>李志新</span>
          </div>
          <div>
            <span>联系电话：19166120325</span>
            <span></span>
          </div>
          
        </div>
      </div>
    </div>
    <!-- tab页 -->
    <div class="tab" :class="{ Fixed: isFixed }">
      <a-anchor :targetOffset="200" @change="anchorChange">
        <div class="flexStart1">
          <a-anchor-link
            href="#part1"
            title="人员信息"
            style="padding-left:0"
          />
          <a-anchor-link href="#part2" title="考勤信息" />
          <a-anchor-link href="#part3" title="工资支付"> </a-anchor-link>
        </div>
      </a-anchor>
    </div>
    <!-- 内容 -->
    <div id="part1">
      <peopleInfo></peopleInfo>
    </div>

    <div id="part2">
      <workInfo />
    </div>
    <div id="part3">
      <wagePayment />
    </div>
   
  </div>
</template>

<script>
import title1 from "@/views/title/index.vue";
import peopleInfo from "./peopleInfo/index.vue";
import workInfo from "./workInfo/index.vue";
import wagePayment from "./wagePayment/index.vue";
export default {
  components: {
    title1,
   peopleInfo,
   workInfo,
   wagePayment
  },
  data() {
    return {
      isFixed: false,
      radioGroup: "1",
      projectDetail:"/projectDetails",
    construction:"/fu/construction",
    laborUnit:'/laborUnit'
    };
  },
  
  methods: {
    anchorChange(val) {
      //   console.log(val);
      if (val) {
        this.isFixed = true;
      } else {
        this.isFixed = false;
      }
    },
    pdfDow() {
      window.open(
        "http://it-jhkj.zhinengjianshe.com/uploadfile/temp/device/2cd6a578de5d447cbcc70fd857b3b31c/2cd6a578de5d447cbcc70fd857b3b31c.pdf"
      );
    },
  },
};
</script>

<style scoped lang="scss">
.breadCrumbBox {
  width: 100%;
  height: 40px;
  background-color: rgba(246, 248, 249, 1);
}
::v-deep .ant-breadcrumb > span:last-child a {
  color: rgba(20, 146, 255, 1);
}
::v-deep .ant-anchor-ink-ball.visible {
  display: none;
}
::v-deep .ant-anchor-ink {
  display: none;
}
::v-deep .ant-table-pagination.ant-pagination {
  display: none;
}
.top,
.tab {
  width: 1300px;
  margin: 0 auto;
  margin-bottom: 20px;
  font-size: 15px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333333;
  line-height: 31px;
}
::v-deep .ant-anchor {
  background: #fff;
}
::v-deep .ant-anchor-link-title {
  font-size: 16px;
  // color: #333;
  font-family: Microsoft YaHei;
  font-weight: 400;
}
::v-deep .ant-anchor-link{
  padding-left: 0;
  margin-left: 15px;
}
::v-deep .ant-anchor-link-active {
  border-bottom: 1px solid #1890ff;
}
.flexStart1{
  height: 33px;
  margin-bottom: 25px;
  border-bottom: 1px solid #ccc;
}
.Fixed {
  position: fixed;
  left: calc(50% - 650px);
  top: 100px;
  z-index: 11;
}
.topLogo {
  position: fixed;
  left: calc(50% - 650px);
  top: 0;
  z-index: 11;
  background: #ffffff;
}
.top {
  padding-top: 40px;
  margin-bottom: 70px;
}
.logo {
  margin-right: 41px;
}
.logo_text {
  width: 140px;
  height: 140px;
  background: #00cc00;
  color: #ffffff;
  line-height: 50px;
  font-size: 38px;
  padding: 40px 33px 24px 31px;
}
.right {
  width: 1120px;
}
.title {
  font-size: 24px;
  line-height: 31px;
  margin-bottom: 22px;
}
#part1,
#part2,
#part3,
#part4,
#part5 {
  width: 1300px;
    height: 400px;
  margin: 0 auto;
  margin-bottom: 20px;
  //   background: forestgreen;
}
#part1{
  height: auto;
}
.info {
  font-size: 15px;
  color: #333333;
  line-height: 31px;
  width: 1120px;
  background: #f5faff;
  padding: 10px 30px;
}
.info div {
  width: 353px;
}
.info div :nth-child(2) {
  color: #2828ff;
}
.part1_div {
  width: 375px;
  height: 50px;
  border-right: 1px solid #ccc;
  text-align: center;
}
.part1_div :nth-child(1) {
  color: #ccc;
  font-size: 14px;
}
.part1_div :nth-child(2) {
  color: #333;
  font-size: 23px;
}
</style>
